% ---------------------------------------------------------------
%
% $Id: ieee6x9.sty,v 1.2 2009/04/15 14:46:54 mniemier Exp $
%
% by Paolo.Ienne@di.epfl.ch
% Modified by: Dean.Thompson@csse.monash.edu.au
% Comments/Suggestions/Bugs  Directed to: ieee-style@csse.monash.edu.au
%
%
% 16-Jul-93: obtained from art11.sty and other .sty files (ienne)
% 07-Mar-95: modified to run under LaTeX2e (ienne)
% 07-Mar-98: updated to provide consistency for subsubsection's (dean)
%
% ---------------------------------------------------------------
%
% no guarantee is given that the format corresponds perfectly to
% IEEE 6" x 9" Proceedings, but most features should be ok.
%
% ---------------------------------------------------------------
% with LaTeX2e:
% =============
%
% use as
%   \documentclass[a4paper,11pt]{article}
%   \usepackage{ieee6x9}
%
% ---------------------------------------------------------------
% with LaTeX 2.09:
% ================
%
% use as \documentstyle[ieee6x9,...your options...]{article}
%
% ---------------------------------------------------------------
% with both versions:
% ===================
%
% specify \pagestyle{empty} to omit page numbers in the final
% version
%
% specify references as
%   {\footnotesize
%      \bibliography{...your files...}
%      \bibliographystyle{plain}
%   }
%
% use Section{}, SubSection{} and SubSubSection{} instead of
%    standard section{}, subsection{} and subsubsection{} to
%     obtain headings in the form "1.3: My heading"
%
% Please note that you may have to obtain the font file titled
%  ``phvb7t.tfm'' or ``phvb.tfm'' if you don't already have the
%  helvetica bold font.  Consult your local CTAN site.
%  (E.g: http://www.dante.de/cgi-bin/ctan-index)
% ---------------------------------------------------------------

% thirteen point roman bold required for first-order headings
\font\thrtbf  = cmbx10 scaled 1300

% eleven point helvetica bold required for captions
% in some sites the name of the helvetica bold font may differ,
% change the name here:
%\font\elvhv  = phvb at 11pt
\font\elvhv  = phvb7t at 11pt

\lineskip 1pt \normallineskip 1pt
\def\baselinestretch{1}

% normal 11pt vertical spacing changed to 13pt
\def\@normalsize{\@setsize\normalsize{13pt}\xipt\@xipt
\abovedisplayskip 11pt plus3pt minus6pt
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt
\belowdisplayshortskip 6.5pt plus3.5pt minus3pt
\let\@listi\@listI}

\def\small{\@setsize\small{12pt}\xpt\@xpt
\abovedisplayskip 10pt plus2pt minus5pt
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt
\belowdisplayshortskip 6pt plus3pt minus3pt
\def\@listi{\leftmargin\leftmargini
\topsep 6pt plus 2pt minus 2pt
\parsep 3pt plus 2pt minus 1pt
\itemsep \parsep}}

% normal 9pt vertical spacing changed to 10pt
\def\footnotesize{\@setsize\footnotesize{10pt}\ixpt\@ixpt
\abovedisplayskip 8pt plus 2pt minus 4pt
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus 1pt
\belowdisplayshortskip 4pt plus 2pt minus 2pt
\def\@listi{\leftmargin\leftmargini
\topsep 4pt plus 2pt minus 2pt
\parsep 2pt plus 1pt minus 1pt
\itemsep \parsep}}

\def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
\def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
\def\large{\@setsize\large{14pt}\xiipt\@xiipt} \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt} \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
\def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
\def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
\normalsize

% many changes here to have the correct page size
\oddsidemargin 11.9pt
\evensidemargin 12.0pt
\marginparwidth 83pt
\marginparsep 10pt
%\topmargin -3.75pc
\setlength{\topmargin}{+.2cm}
%\topmargin -2.4pc
% \topmargin -3pc MTN
\topmargin 0pc
\headheight 12pt \headsep 25pt \footskip 30pt
%\textheight 53.75pc
%\textheight 53.25pc
\textheight 57pc
\textwidth 36pc

\footnotesep 7.7pt
\skip\footins 10pt plus 4pt minus 2pt
\floatsep 12pt plus 2pt minus 2pt
\textfloatsep 13pt plus 2pt minus 4pt
\intextsep 12pt plus 2pt minus 2pt
%\@maxsep 20pt
\dblfloatsep 12pt plus 2pt minus 2pt
\dbltextfloatsep 20pt plus 2pt minus 4pt
%\@dblmaxsep 20pt
\@fptop 0pt plus 1fil
\@fpsep 8pt plus 2fil
\@fpbot 0pt plus 1fil
\@dblfptop 0pt plus 1fil
\@dblfpsep 8pt plus 2fil
\@dblfpbot 0pt plus 1fil
\marginparpush 5pt

\parskip 0pt plus 1pt
\parindent 1pc
\partopsep 3pt plus 1pt minus 2pt
\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301
\@beginparpenalty -\@lowpenalty
\@endparpenalty -\@lowpenalty
\@itempenalty -\@lowpenalty


\def\part{\par \addvspace{4ex} \@afterindentfalse
\secdef\@part\@spart}
\def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}
\addcontentsline{toc}{part}{\thepart \hspace{1em}#1}\else
\addcontentsline{toc}{part}{#1}\fi { \parindent 0pt \raggedright
\ifnum \c@secnumdepth >\m@ne \Large \bf Part \thepart
\par\nobreak \fi \huge
\bf #2\markboth{}{}\par } \nobreak \vskip 3ex \@afterheading }
\def\@spart#1{{\parindent 0pt \raggedright
\huge \bf
#1\par} \nobreak \vskip 3ex \@afterheading }

% some changes here to have the headings (including the new subsubsection}
\def\section{\@startsection {section}{1}{\z@}
{16pt plus 2pt minus 2pt}{16pt plus 2pt minus 2pt}
{\Large\thrtbf}}
\def\subsection{\@startsection {subsection}{2}{\z@}
{13pt plus 2pt minus 2pt}{13pt plus 2pt minus 2pt}
{\normalsize\bf}}
\def\subsubsection{\@startsection {subsubsection}{3}{\z@}
{10pt plus 2pt minus 2pt}{10pt plus 2pt minus 2pt}
{\small\bf}}

\setcounter{secnumdepth}{3}

\def\appendix{\par
\setcounter{section}{0}
\setcounter{subsection}{0}
\def\thesection{\Alph{section}}}

\leftmargini 2.5em
\leftmarginii 2.2em
\leftmarginiii 1.87em
\leftmarginiv 1.7em
\leftmarginv 1em
\leftmarginvi 1em
\leftmargin\leftmargini
\labelsep .5em
\labelwidth\leftmargini\advance\labelwidth-\labelsep
\def\@listI{\leftmargin\leftmargini
\parsep 0pt\topsep 5pt\itemsep 3pt}
\let\@listi\@listI
\@listi
\def\@listii{\leftmargin\leftmarginii
\labelwidth\leftmarginii\advance\labelwidth-\labelsep
\topsep 4.5pt plus 2pt minus 1pt
\parsep 2pt plus 1pt minus 1pt
\itemsep \parsep}
\def\@listiii{\leftmargin\leftmarginiii
\labelwidth\leftmarginiii\advance\labelwidth-\labelsep
\topsep 2pt plus 1pt minus 1pt
\parsep \z@ \partopsep 1pt plus 0pt minus 1pt
\itemsep \topsep}
\def\@listiv{\leftmargin\leftmarginiv
\labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
\def\@listv{\leftmargin\leftmarginv
\labelwidth\leftmarginv\advance\labelwidth-\labelsep}
\def\@listvi{\leftmargin\leftmarginvi
\labelwidth\leftmarginvi\advance\labelwidth-\labelsep}

\def\maketitle{\par
\begingroup
\def\thefootnote{\fnsymbol{footnote}}
\def\@makefnmark{\hbox
to 0pt{$^{\@thefnmark}$\hss}}
\if@twocolumn
\twocolumn[\@maketitle]
\else \newpage
% Prevents figures from going at top of page.
\global\@topnum\z@
\@maketitle \fi\thispagestyle{plain}\@thanks
\endgroup
\setcounter{footnote}{0}
\let\maketitle\relax
\let\@maketitle\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}

\def\@maketitle{\newpage
\null
\vspace*{-1pc}         % Vertical space above title.
\begin{center}
{\Large\bf \@title \par}    % Title set in 14pt boldface.
\vspace*{26pt}        % Two blank lines after title.
{\large               % Author/affiliation set in \large
\lineskip .5em
\begin{tabular}[t]{c}\@author
\end{tabular}\par}
\end{center}
\par
\vspace*{16pt}         % Two blank lines after author. (?!)
}

\def\abstract{\vspace*{-16pt}%
\section*{\normalsize\bf\centering Abstract}\em}
% Two blank lines after abstract (-16pt already left
%   from \section)
\def\endabstract{\vspace*{10pt}}

\newcommand{\Section}[1]{\section{\hskip -1em:~#1}} \newcommand{\SubSection}[1]{\subsection{\hskip -1em:~#1}} \newcommand{\SubSubSection}[1]{\subsubsection{\hskip -1em:~#1}}

\long\def\@makecaption#1#2{
\vskip 10pt
\setbox\@tempboxa\hbox{\large\elvhv #1.~#2}
\ifdim \wd\@tempboxa >\hsize   % IF longer than one line:
\large\elvhv #1.~#2\par     % THEN set as ordinary
%      paragraph.
\else                          % ELSE center.
\hbox to\hsize{\hfil\box\@tempboxa\hfil}
\fi}

% end of file ieee6x9.sty
% ---------------------------------------------------------------
